projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aad658
)
Remove unused 'file' function.
author
Ewan Higgs
<ewan_higgs@yahoo.co.uk>
Mon, 30 Jan 2017 09:38:46 +0000
(10:38 +0100)
committer
Ewan Higgs
<ewan_higgs@yahoo.co.uk>
Tue, 31 Jan 2017 09:23:45 +0000
(10:23 +0100)
src/cargo/util/paths.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/paths.rs
b/src/cargo/util/paths.rs
index 075a55a473f3695f42fba31e37356382308ad8d4..d47598a2ece148aab39d562967182408cd50954b 100644
(file)
--- a/
src/cargo/util/paths.rs
+++ b/
src/cargo/util/paths.rs
@@
-2,7
+2,6
@@
use std::env;
use std::ffi::{OsStr, OsString};
use std::fs::File;
use std::fs::OpenOptions;
-use std::io;
use std::io::prelude::*;
use std::path::{Path, PathBuf, Component};
@@
-68,10
+67,6
@@
pub fn without_prefix<'a>(a: &'a Path, b: &'a Path) -> Option<&'a Path> {
}
}
-pub fn file(p: &Path, contents: &[u8]) -> io::Result<()> {
- try!(File::create(p)).write_all(contents)
-}
-
pub fn read(path: &Path) -> CargoResult<String> {
(|| -> CargoResult<_> {
let mut ret = String::new();